package com.olinsports.system.olinsportssystem.manager;

import com.olinsports.system.olinsportssystem.model.InventoryDetails;
import com.olinsports.system.olinsportssystem.model.InventorySettings;
import com.olinsports.system.olinsportssystem.service.InventorySettingsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/7/22.
 */
@Component
public class InventorySettingsManager {
    @Autowired
    private InventorySettingsService inventorySettingsService;
    public List<InventorySettings> selectAll(){
        return inventorySettingsService.selectAll();
    }
    public int insertAll(InventorySettings inventorySettings){
        return inventorySettingsService.insertAll(inventorySettings);
    }
    public int deleteByKey(int detailedKey){
        return inventorySettingsService.deleteByKey(detailedKey);
    }

    public int updateData(InventorySettings inventorySettings){
        return inventorySettingsService.updateData(inventorySettings);
    }

    public InventorySettings selectByKey(int inventoryKey){
        return inventorySettingsService.selectByKey(inventoryKey);
    }

    public Map listOrSearchInvent(String page, String rows, boolean _search, String sord, String sidx){
        return inventorySettingsService.listOrSearchInvent(page,rows,_search,sord,sidx);
    }

    public int saveInventorySettings(InventorySettings inventorySettings,int typekey) {
        return inventorySettingsService.saveInventorySettings(inventorySettings,typekey);
    }
}
